package petertel.pbx.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 系统级的控制器
 * @author chenpi  
 * @date 2012-7-9 下午5:07:37
 * @version 1.0
 */
@Controller
@RequestMapping("/system")
public class SystemController {
	
	/**
	 * 登录
	 * @param userName
	 * @param password
	 * @return
	 * @author chenpi
	 */
	@RequestMapping(value="/login")
	public String login(String userName,String password,ModelMap model){	
		model.addAttribute("userName", userName);
		return "main";
	}

}
